package com.biscuit.page.basicservice.model.enums;

import lombok.Getter;

/**
 * @author mazihao
 * @createTime 2024/3/7 17:41
 */
@Getter
public enum BaseResponseEnum {

    SUCCESS("200", "成功"),
    ERROR("500", "系统异常"),
    ERROR_PARAM("9998", "参数错误"),
    ERROR_SERVICE("9999", "业务错误"),
    ERROR_UNAUTHORIZED("401", "未授权"),
    ERROR_FORBIDDEN("403", "禁止访问"),
    ERROR_NOT_FOUND("404", "资源不存在"),
    ERROR_METHOD_NOT_ALLOWED("405", "请求方法不支持");


    final String code;
    final String message;

    BaseResponseEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
